/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.hotel.test.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    Vien-IT
 * @generated
 */
public class RomTypeSoap implements Serializable {
	public static RomTypeSoap toSoapModel(RomType model) {
		RomTypeSoap soapModel = new RomTypeSoap();

		soapModel.setRomId(model.getRomId());
		soapModel.setUserId(model.getUserId());
		soapModel.setUserName(model.getUserName());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());
		soapModel.setRoomName(model.getRoomName());
		soapModel.setInformation(model.getInformation());
		soapModel.setNumberOfGuest(model.getNumberOfGuest());
		soapModel.setRice(model.getRice());
		soapModel.setNumberOfRoom(model.getNumberOfRoom());
		soapModel.setHotelId(model.getHotelId());

		return soapModel;
	}

	public static RomTypeSoap[] toSoapModels(RomType[] models) {
		RomTypeSoap[] soapModels = new RomTypeSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static RomTypeSoap[][] toSoapModels(RomType[][] models) {
		RomTypeSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new RomTypeSoap[models.length][models[0].length];
		}
		else {
			soapModels = new RomTypeSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static RomTypeSoap[] toSoapModels(List<RomType> models) {
		List<RomTypeSoap> soapModels = new ArrayList<RomTypeSoap>(models.size());

		for (RomType model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new RomTypeSoap[soapModels.size()]);
	}

	public RomTypeSoap() {
	}

	public long getPrimaryKey() {
		return _romId;
	}

	public void setPrimaryKey(long pk) {
		setRomId(pk);
	}

	public long getRomId() {
		return _romId;
	}

	public void setRomId(long romId) {
		_romId = romId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getUserName() {
		return _userName;
	}

	public void setUserName(String userName) {
		_userName = userName;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	public String getRoomName() {
		return _roomName;
	}

	public void setRoomName(String roomName) {
		_roomName = roomName;
	}

	public String getInformation() {
		return _information;
	}

	public void setInformation(String information) {
		_information = information;
	}

	public int getNumberOfGuest() {
		return _numberOfGuest;
	}

	public void setNumberOfGuest(int numberOfGuest) {
		_numberOfGuest = numberOfGuest;
	}

	public String getRice() {
		return _rice;
	}

	public void setRice(String rice) {
		_rice = rice;
	}

	public int getNumberOfRoom() {
		return _numberOfRoom;
	}

	public void setNumberOfRoom(int numberOfRoom) {
		_numberOfRoom = numberOfRoom;
	}

	public long getHotelId() {
		return _hotelId;
	}

	public void setHotelId(long hotelId) {
		_hotelId = hotelId;
	}

	private long _romId;
	private long _userId;
	private String _userName;
	private Date _createDate;
	private Date _modifiedDate;
	private String _roomName;
	private String _information;
	private int _numberOfGuest;
	private String _rice;
	private int _numberOfRoom;
	private long _hotelId;
}